import request from '@/utils/request'

// 查询订单清算列表
export function listLiquidation(query) {
  return request({
    url: '/store/liquidation/list',
    method: 'get',
    params: query
  })
}

// 查询订单清算详细
export function getLiquidation(liquidationId) {
  return request({
    url: '/store/liquidation/' + liquidationId,
    method: 'get'
  })
}

// 新增订单清算
export function addLiquidation(data) {
  return request({
    url: '/store/liquidation',
    method: 'post',
    data: data
  })
}

// 修改订单清算
export function updateLiquidation(data) {
  return request({
    url: '/store/liquidation',
    method: 'put',
    data: data
  })
}

// 删除订单清算
export function delLiquidation(liquidationId) {
  return request({
    url: '/store/liquidation/' + liquidationId,
    method: 'delete'
  })
}
